<template>
    <div style="width：90%;paddingLeft:5%;paddingRight:5%">
        <div class="block">
            <el-carousel height="200px" :interval="6000" arrow="always">
            <el-carousel-item v-for="(item,i) in items2" :key="i">
               <router-link :to="item.href+'/'+item.aid"> <img :src="item.img" alt="" style="width:100%"></router-link>
            </el-carousel-item>
            </el-carousel>
        </div>
        <h1 class="recNew">最新新闻</h1>
        <ul>
            <li v-for="item in items" :key="item.key">
                <p><a :href="item.href" target="_blank"><span class="yuan">&nbsp;</span>&nbsp;{{item.content}}</a></p>
            </li>
        </ul>
    </div>
</template>
<script>

import recentNews1 from '@/assets/images/522.jpg'
import recentNews2 from '@/assets/images/3_20.png'
import recentNews3 from '@/assets/images/12.jpeg'

export default {
    name: 'recentNews',
    data() {
        return {
            items:[
                {
                    key:'1',
                    content: "四川省挑战杯比赛圆满结束",
                    href:'http://news.sina.com.cn/o/2019-11-04/doc-iicezuev7098807.shtml'
                },
                {
                    key:'2',
                    content: "2020年互联网+大赛省赛圆满完成",
                    href:'http://www.lzbs.com.cn/special/2019/wmcs/2019-11/04/content_4545336.htm'
                },
                {
                    key:'3',
                    content: "TrafficHUT基于航拍视频的车辆轨迹识别竞赛招募中",
                    href:'https://new.qq.com/omn/HEC20191/HEC2019110400095600.html'

                },
                {
                    key:'4',
                    content: "第二届全国高校创新英语挑战活动综合能力赛招募中",
                    href:'http://www.cqn.com.cn/cj/content/2019-11/04/content_7724170.htm'
                },
                {
                    key:'5',
                    content: "第三届普译奖全国大学生英语写作大赛",
                    href:'http://dy.newssc.org/system/20191104/002790310.html'
                },
                {
                    key:'6',
                    content: "微信小程序云开发大赛火热进行中",
                    href:'http://news.lsnews.com.cn/life/201911/t20191104_273879.shtml'
                }
            ],
            items2:[
                {
                    img:'../assets/images/522.jpg',
                    href:'/majorNew',
                    img: "https://t2.chei.com.cn/ncss/cy/web/img/banner_top_6th_2_n2.jpg",
                    aid:'1',
                },
                {
                    img:'',
                    href:'/majorNew',
                    img: "https://t2.chei.com.cn/ncss/cy/web/img/banner_top_6th_2_n2.jpg",
                    aid:'2'

                },
                {
                    img:'',
                    href:'/majorNew',
                    img: "https://t2.chei.com.cn/ncss/cy/web/img/banner_top_6th_2_n2.jpg",
                    aid:'3'

                },
            ]
        }
    },
}
</script>
<style scoped>
.recNew{
    border-bottom: 3px solid #98e778;
    color: #2ca41e;
    font-family: MicrosoftYaHei;
    font-size: 18px;
}
li>p{
    line-height: 25px;
    font-family: MicrosoftYaHei;
    font-size: 12px;
    font-weight: normal;
    font-stretch: normal;
    letter-spacing: 1px;
    color: #060606;
}
</style>